package org.vectrics.mail.struts;

import org.vectrics.SystemException;

public class AjaxUtils {

	public AjaxUtils() {
		super();
	}
	public String encodeLineBreaks(String before) {
		String after = before.replaceAll("\n", "[LF]");
		if (after.indexOf("\n") > 0)
			throw new SystemException("Found a \\n after replacing them");
		return(after);
	}
}
